package encap.Schoolhomework;

import java.util.Scanner;



class content {

    private static String name;
    private static int id;
    public static int choice;
    private static String t = "";
    public static String detail;
    static int  f1=0;
    Scanner sc1 = new Scanner(System.in);
    static String reason="";

   public  content(){

   }
    public content(String name, int id, int choice, String t) {
        this.name = name;
        this.id = id;
        this.choice = choice;
        this.t = t;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getChoice() {
        return choice;
    }

    public void setChoice(int choice) {
        this.choice = choice;
    }

    public String getT() {
        return t;
    }

    public void setT(String t) {
        this.t = t;
    }

    public  void Outout() {
        System.out.println("====请输入====");
        System.out.println("姓名\t\t学号\t\t请假理由");
        do{
            Input();
            detail+= "名字："+name + "\t\t" + "学号:" + id + "\t\t"+"请假理由：" +
                    t+reason+"\n";
            System.out.println("完成输入请按4");
            f1=sc1.nextInt();
        }while(f1!=4);


    }

    public static void Input() {
        Scanner sc = new Scanner(System.in);
        System.out.println("Enter the name of the student");
        name = sc.nextLine();
        System.out.println("Enter the id of the student");
        id = sc.nextInt();
        System.out.println("请选择理由:\n1.病假\n2.事假\n3.其他");
        choice = sc.nextInt();
        switch (choice) {
            case 1:
                t += "病假";
                break;
            case 2:
                t += "事假";
                break;
            case 3:
                t += "其他\n具体理由：";

                reason= sc.next();
                break;


        }


    }
}
